package cn.zyjblogs.starter.common.exception;


import cn.zyjblogs.starter.common.entity.response.HttpCode;
import cn.zyjblogs.starter.common.utils.string.StringUtils;

/**
 * 工具类异常
 */
public class UtilException extends AbstractBusinessException {
    private static final long serialVersionUID = 8247610319171014183L;

    public UtilException(String message) {
        super(message);
    }

    public UtilException(String message, Object... params) {
        super(StringUtils.format(message, params));
    }

    public UtilException(HttpCode code, String message) {
        super(code, message);
    }

    public UtilException(HttpCode code, String message, Object... params) {
        super(code, StringUtils.format(message, params));
    }
}
